
if [ $# -ne 2 ]; then
    echo "This script accepts and only accepts mode and level parameter like riscv and 1."
    exit 1
fi



export CDE_LIBRARY_PATH=/home/azufre/learning/compiling/pku/opt/lib
export CDE_INCLUDE_PATH=/home/azufre/learning/compiling/pku/opt/include
export COMPILER_LAB_PATH=/home/azufre/learning/compiling/pku/sysy-cpp
export PATH=$PATH:/home/azufre/learning/compiling/pku/opt/bin

python3 /home/azufre/learning/compiling/pku/opt/bin/autotest -$1 -s lv$2 $COMPILER_LAB_PATH

